home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / r / distinct.result < prev    next >
Encoding:
Text File  |  2003-01-21  |  1.8 KB  |  177 lines  |  [TEXT/ttxt]

  1. id
  2. NULL
  3. -1
  4. 0
  5. 1
  6. 2
  7. 3
  8. 4
  9. 5
  10. 6
  11. 7
  12. 8
  13. 9
  14. 10
  15. id    facility
  16. NULL    NULL
  17. -1    
  18. 0    
  19. 1    /L
  20. 2    A01
  21. 3    ANC
  22. 4    F01
  23. 5    FBX
  24. 6    MT
  25. 7    P
  26. 8    RV
  27. 9    SRV
  28. 10    VMT
  29. id-5    facility
  30. NULL    NULL
  31. -6    
  32. -5    
  33. -4    /L
  34. -3    A01
  35. -2    ANC
  36. -1    F01
  37. 0    FBX
  38. 1    MT
  39. 2    P
  40. 3    RV
  41. 4    SRV
  42. 5    VMT
  43. id    concat(facility)
  44. NULL    NULL
  45. -1    
  46. 0    
  47. 1    /L
  48. 2    A01
  49. 3    ANC
  50. 4    F01
  51. 5    FBX
  52. 6    MT
  53. 7    P
  54. 8    RV
  55. 9    SRV
  56. 10    VMT
  57. a    max(id)    b
  58. 10    10    VMT
  59. 9    9    SRV
  60. 8    8    RV
  61. 7    7    P
  62. 6    6    MT
  63. 5    5    FBX
  64. 4    4    F01
  65. 3    3    ANC
  66. 2    2    A01
  67. 1    1    /L
  68. -1    -1    
  69. 0    0    
  70. NULL    NULL    NULL
  71. grp    count(*)
  72. NULL    1
  73. 0    6
  74. 1    6
  75. FACILITY
  76. NULL
  77.  
  78. /L
  79. A01
  80. ANC
  81. F01
  82. FBX
  83. MT
  84. P
  85. RV
  86. SRV
  87. VMT
  88. FACILITY
  89. NULL
  90.  
  91. /L
  92. A01
  93. ANC
  94. F01
  95. FBX
  96. MT
  97. P
  98. RV
  99. SRV
  100. VMT
  101. count(*)
  102. 12
  103. count(facility)
  104. 12
  105. count(*)
  106. 13
  107. count(*)
  108. 1
  109. count(*)
  110. 0
  111. count(*)
  112. 12
  113. count(*)
  114. 1
  115. count(*)
  116. 12
  117. UserId
  118. UserId
  119. UserId
  120. UserId
  121. b
  122. 1
  123. table    type    possible_keys    key    key_len    ref    rows    Extra
  124. t3    index    a    a    5    NULL    6    Using index; Using temporary
  125. t2    index    a    a    4    NULL    5    Using index; Distinct
  126. t1    eq_ref    PRIMARY    PRIMARY    4    t2.a    1    where used; Distinct
  127. a
  128. 1
  129. table    type    possible_keys    key    key_len    ref    rows    Extra
  130. t1    index    PRIMARY    PRIMARY    4    NULL    2    Using index; Using temporary
  131. t3    ref    a    a    5    t1.a    10    where used; Using index; Distinct
  132. a
  133. 1
  134. 2
  135. 1
  136. 1
  137. name
  138. aa
  139. ab
  140. name
  141. aa
  142. ab
  143. 1
  144. 1
  145. key_link_id    link
  146. NULL    NULL
  147. table    type    possible_keys    key    key_len    ref    rows    Extra
  148. t1    index    id    id    4    NULL    2    Using index; Using temporary
  149. t2    index    id    id    8    NULL    1    Using index; Distinct
  150. t3    index    id    id    8    NULL    1    Using index; Distinct
  151. j_lj_t2    index    id    id    4    NULL    2    where used; Using index; Distinct
  152. t2_lj    index    id    id    8    NULL    1    where used; Using index; Distinct
  153. j_lj_t3    index    id    id    4    NULL    2    where used; Using index; Distinct
  154. t3_lj    index    id    id    8    NULL    1    where used; Using index; Distinct
  155. id
  156. 2
  157. a    sec_to_time(sum(time_to_sec(t)))
  158. 1    00:06:15
  159. 1    00:36:30
  160. 1    00:36:30
  161. a    sec_to_time(sum(time_to_sec(t)))
  162. 1    00:06:15
  163. 1    00:36:30
  164. a    sec_to_time(sum(time_to_sec(t)))
  165. 1    00:06:15
  166. 1    00:36:30
  167. 1    00:36:30
  168. a    sec_to_time(sum(time_to_sec(t)))
  169. 1    00:06:15
  170. 1    00:36:30
  171. a
  172. 4
  173. 3
  174. a    c
  175. 4    NULL
  176. 3    NULL
  177.